package com.deer.wms.project.root.license.client;

import de.schlichtherle.license.LicenseManager;
import de.schlichtherle.license.LicenseParam;

/**
 * @author : wei
 * @description :
 * @since : 2021-06-11 17:57:37
 **/
public class LicenseManagerHolder {

    //        private static volatile LicenseManager LICENSE_MANAGER;
    private static LicenseManager LICENSE_MANAGER;

    public static synchronized LicenseManager getInstance(LicenseParam param) {
        if (LICENSE_MANAGER == null) {
            LICENSE_MANAGER = new CustomLicenseManager(param);
        }
        return LICENSE_MANAGER;
    }

}
